<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
{#<form action="http://127.0.0.1:5000/result" method="post">#}
<form action={{ url_for('result') }}  method="post">
    <p>姓名<input type="text" name="姓名"></p>
    <p>年龄<input type="text" name="年龄"></p>
    <p><input type="submit" value="提交"></p>
</form>
</body>
</html>